#ifndef BASESHOWWIDGET_H
#define BASESHOWWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QMouseEvent>

#include "../observer/globalobserver.h"
#include "common.h"

class BaseShowWidget : public QLabel
{
    Q_OBJECT
public:
    explicit BaseShowWidget(BaseShowWidget *parent = 0);
    virtual void setSelectStyle(bool select) = 0;
    virtual void setAllChildrenLossSelect() = 0;

protected:
    void mousePressEvent(QMouseEvent *event);
    //子类需要使用所以protected
    bool m_select;

public slots:
    void setLossSelect();
    void setSelected();
};

#endif // BASESHOWWIDGET_H
